package presentation;
import business.*;

public class TextCommandHandler 
{
	private Theatre MainTheatre;
	
	public TextCommandHandler(Theatre MainTheatre)
	{
		this.MainTheatre = MainTheatre;
	}
	
	public String ViewAllEvents()
	{
		String EventsInfoForScreen="";
		
		for(Event EV : MainTheatre.ViewAllEvents())
		{
			EventsInfoForScreen += EV.getName()+ " | " + EV.getLocation().getRoomNumber() + " | " +EV.getStartTime() + " | " +EV.getEndTime() + "\n";
		}
		
		return EventsInfoForScreen;
	}
	
	

}
